Option Strict Off
Option Explicit On
Friend Class frmSplash
	Inherits System.Windows.Forms.Form
#Region "Windows Form Designer generated code "
	Public Sub New()
		MyBase.New()
		If m_vb6FormDefInstance Is Nothing Then
			If m_InitializingDefInstance Then
				m_vb6FormDefInstance = Me
			Else
				Try 
					'For the start-up form, the first instance created is the default instance.
					If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
						m_vb6FormDefInstance = Me
					End If
				Catch
				End Try
			End If
		End If
		'This call is required by the Windows Form Designer.
		InitializeComponent()
	End Sub
	'Form overrides dispose to clean up the component list.
	Protected Overloads Overrides Sub Dispose(ByVal Disposing As Boolean)
		If Disposing Then
			If Not components Is Nothing Then
				components.Dispose()
			End If
		End If
		MyBase.Dispose(Disposing)
	End Sub
	'Required by the Windows Form Designer
	Private components As System.ComponentModel.IContainer
	Public ToolTip1 As System.Windows.Forms.ToolTip
	Public WithEvents Timer1 As System.Windows.Forms.Timer
	Public WithEvents Image2 As System.Windows.Forms.PictureBox
	Public WithEvents lblWarning As System.Windows.Forms.Label
	Public WithEvents lblCompany As System.Windows.Forms.Label
	Public WithEvents Image1 As System.Windows.Forms.PictureBox
	Public WithEvents Label1 As System.Windows.Forms.Label
	Public WithEvents lblProductName As System.Windows.Forms.Label
	Public WithEvents lblVersion As System.Windows.Forms.Label
	'NOTE: The following procedure is required by the Windows Form Designer
	'It can be modified using the Windows Form Designer.
	'Do not modify it using the code editor.
	<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
		Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmSplash))
		Me.components = New System.ComponentModel.Container()
		Me.ToolTip1 = New System.Windows.Forms.ToolTip(components)
		Me.ToolTip1.Active = True
		Me.Timer1 = New System.Windows.Forms.Timer(components)
		Me.Image2 = New System.Windows.Forms.PictureBox
		Me.lblWarning = New System.Windows.Forms.Label
		Me.lblCompany = New System.Windows.Forms.Label
		Me.Image1 = New System.Windows.Forms.PictureBox
		Me.Label1 = New System.Windows.Forms.Label
		Me.lblProductName = New System.Windows.Forms.Label
		Me.lblVersion = New System.Windows.Forms.Label
		Me.ControlBox = False
		Me.BackColor = System.Drawing.Color.White
		Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
		Me.ClientSize = New System.Drawing.Size(540, 260)
		Me.Location = New System.Drawing.Point(15, 92)
		Me.KeyPreview = True
		Me.MaximizeBox = False
		Me.MinimizeBox = False
		Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
		Me.Font = New System.Drawing.Font("Arial", 8!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
		Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
		Me.Enabled = True
		Me.Cursor = System.Windows.Forms.Cursors.Default
		Me.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.ShowInTaskbar = True
		Me.HelpButton = False
		Me.WindowState = System.Windows.Forms.FormWindowState.Normal
		Me.Name = "frmSplash"
		Me.Timer1.Interval = 1500
		Me.Timer1.Enabled = True
		Me.Image2.Size = New System.Drawing.Size(46, 148)
		Me.Image2.Location = New System.Drawing.Point(24, 56)
		Me.Image2.Image = CType(resources.GetObject("Image2.Image"), System.Drawing.Image)
		Me.Image2.Enabled = True
		Me.Image2.Cursor = System.Windows.Forms.Cursors.Default
		Me.Image2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Normal
		Me.Image2.Visible = True
		Me.Image2.BorderStyle = System.Windows.Forms.BorderStyle.None
		Me.Image2.Name = "Image2"
		Me.lblWarning.BackColor = System.Drawing.Color.White
		Me.lblWarning.Text = "Warning"
		Me.lblWarning.Size = New System.Drawing.Size(417, 41)
		Me.lblWarning.Location = New System.Drawing.Point(112, 208)
		Me.lblWarning.TabIndex = 4
		Me.lblWarning.Font = New System.Drawing.Font("Arial", 8!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
		Me.lblWarning.TextAlign = System.Drawing.ContentAlignment.TopLeft
		Me.lblWarning.Enabled = True
		Me.lblWarning.ForeColor = System.Drawing.SystemColors.ControlText
		Me.lblWarning.Cursor = System.Windows.Forms.Cursors.Default
		Me.lblWarning.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.lblWarning.UseMnemonic = True
		Me.lblWarning.Visible = True
		Me.lblWarning.AutoSize = False
		Me.lblWarning.BorderStyle = System.Windows.Forms.BorderStyle.None
		Me.lblWarning.Name = "lblWarning"
		Me.lblCompany.TextAlign = System.Drawing.ContentAlignment.TopRight
		Me.lblCompany.BackColor = System.Drawing.Color.White
		Me.lblCompany.Text = "Company"
		Me.lblCompany.Font = New System.Drawing.Font("Arial", 27.75!, System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
		Me.lblCompany.Size = New System.Drawing.Size(217, 51)
		Me.lblCompany.Location = New System.Drawing.Point(312, 144)
		Me.lblCompany.TabIndex = 3
		Me.lblCompany.Enabled = True
		Me.lblCompany.ForeColor = System.Drawing.SystemColors.ControlText
		Me.lblCompany.Cursor = System.Windows.Forms.Cursors.Default
		Me.lblCompany.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.lblCompany.UseMnemonic = True
		Me.lblCompany.Visible = True
		Me.lblCompany.AutoSize = False
		Me.lblCompany.BorderStyle = System.Windows.Forms.BorderStyle.None
		Me.lblCompany.Name = "lblCompany"
		Me.Image1.Size = New System.Drawing.Size(195, 115)
		Me.Image1.Location = New System.Drawing.Point(112, 80)
		Me.Image1.Image = CType(resources.GetObject("Image1.Image"), System.Drawing.Image)
		Me.Image1.Enabled = True
		Me.Image1.Cursor = System.Windows.Forms.Cursors.Default
		Me.Image1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Normal
		Me.Image1.Visible = True
		Me.Image1.BorderStyle = System.Windows.Forms.BorderStyle.None
		Me.Image1.Name = "Image1"
		Me.Label1.BackColor = System.Drawing.Color.Black
		Me.Label1.Text = "Label1"
		Me.Label1.Size = New System.Drawing.Size(97, 345)
		Me.Label1.Location = New System.Drawing.Point(0, 0)
		Me.Label1.TabIndex = 2
		Me.Label1.Font = New System.Drawing.Font("Arial", 8!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
		Me.Label1.TextAlign = System.Drawing.ContentAlignment.TopLeft
		Me.Label1.Enabled = True
		Me.Label1.ForeColor = System.Drawing.SystemColors.ControlText
		Me.Label1.Cursor = System.Windows.Forms.Cursors.Default
		Me.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.Label1.UseMnemonic = True
		Me.Label1.Visible = True
		Me.Label1.AutoSize = False
		Me.Label1.BorderStyle = System.Windows.Forms.BorderStyle.None
		Me.Label1.Name = "Label1"
		Me.lblProductName.BackColor = System.Drawing.Color.White
		Me.lblProductName.Text = "Product"
		Me.lblProductName.Font = New System.Drawing.Font("Arial", 27.75!, System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
		Me.lblProductName.Size = New System.Drawing.Size(425, 51)
		Me.lblProductName.Location = New System.Drawing.Point(104, 16)
		Me.lblProductName.TabIndex = 1
		Me.lblProductName.TextAlign = System.Drawing.ContentAlignment.TopLeft
		Me.lblProductName.Enabled = True
		Me.lblProductName.ForeColor = System.Drawing.SystemColors.ControlText
		Me.lblProductName.Cursor = System.Windows.Forms.Cursors.Default
		Me.lblProductName.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.lblProductName.UseMnemonic = True
		Me.lblProductName.Visible = True
		Me.lblProductName.AutoSize = False
		Me.lblProductName.BorderStyle = System.Windows.Forms.BorderStyle.None
		Me.lblProductName.Name = "lblProductName"
		Me.lblVersion.TextAlign = System.Drawing.ContentAlignment.TopRight
		Me.lblVersion.BackColor = System.Drawing.Color.White
		Me.lblVersion.Text = "Version"
		Me.lblVersion.Font = New System.Drawing.Font("Arial", 12!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
		Me.lblVersion.Size = New System.Drawing.Size(181, 19)
		Me.lblVersion.Location = New System.Drawing.Point(352, 72)
		Me.lblVersion.TabIndex = 0
		Me.lblVersion.Enabled = True
		Me.lblVersion.ForeColor = System.Drawing.SystemColors.ControlText
		Me.lblVersion.Cursor = System.Windows.Forms.Cursors.Default
		Me.lblVersion.RightToLeft = System.Windows.Forms.RightToLeft.No
		Me.lblVersion.UseMnemonic = True
		Me.lblVersion.Visible = True
		Me.lblVersion.AutoSize = False
		Me.lblVersion.BorderStyle = System.Windows.Forms.BorderStyle.None
		Me.lblVersion.Name = "lblVersion"
		Me.Controls.Add(Image2)
		Me.Controls.Add(lblWarning)
		Me.Controls.Add(lblCompany)
		Me.Controls.Add(Image1)
		Me.Controls.Add(Label1)
		Me.Controls.Add(lblProductName)
		Me.Controls.Add(lblVersion)
	End Sub
#End Region 
#Region "Upgrade Support "
	Private Shared m_vb6FormDefInstance As frmSplash
	Private Shared m_InitializingDefInstance As Boolean
	Public Shared Property DefInstance() As frmSplash
		Get
			If m_vb6FormDefInstance Is Nothing OrElse m_vb6FormDefInstance.IsDisposed Then
				m_InitializingDefInstance = True
				m_vb6FormDefInstance = New frmSplash()
				m_InitializingDefInstance = False
			End If
			DefInstance = m_vb6FormDefInstance
		End Get
		Set
			m_vb6FormDefInstance = Value
		End Set
	End Property
#End Region 
	
	Private Const HWND_TOPMOST As Short = -1
	Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Integer, ByVal hWndInsertAfter As Integer, ByVal x As Integer, ByVal y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer) As Integer
	
	'UPGRADE_WARNING: Form event frmSplash.Activate has a new behavior. Click for more: 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="vbup2065"'
	Private Sub frmSplash_Activated(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Activated
		
		On Error GoTo ErrHandler
		Const cPROCNAME As String = "Form_Activate"
		
		Call MakeTopMost(Me)
		
EndSub: 
		Exit Sub
		
ErrHandler: 
		Call SetErr(Err.Number, Err.Description, Me.Name, cPROCNAME)
		GoTo EndSub
		
	End Sub
	Private Sub MakeTopMost(ByRef F As System.Windows.Forms.Form)
		
		On Error GoTo ErrHandler
		Const cPROCNAME As String = "MakeTopMost"
		
		Dim lLeft As Integer
		Dim lTop As Integer
		
		'Make the screen saver a TOPMOST window
		lLeft = ((VB6.PixelsToTwipsX(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width) - VB6.PixelsToTwipsX(F.Width)) \ 15) \ 2
		lTop = ((VB6.PixelsToTwipsY(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height) - VB6.PixelsToTwipsY(F.Height)) \ 15) \ 2
		Call SetWindowPos(F.Handle.ToInt32, HWND_TOPMOST, lLeft, lTop, 0, 0, 1)
		
EndSub: 
		Exit Sub
		
ErrHandler: 
		Call SetErr(Err.Number, Err.Description, Me.Name, cPROCNAME)
		GoTo EndSub
		
	End Sub
	Private Sub frmSplash_KeyPress(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
		Dim KeyAscii As Short = Asc(eventArgs.KeyChar)
		
		On Error GoTo ErrHandler
		Const cPROCNAME As String = "Form_KeyPress"
		
		Me.Close()
		
EndSub: 
		GoTo EventExitSub
		
ErrHandler: 
		Call SetErr(Err.Number, Err.Description, Me.Name, cPROCNAME)
		GoTo EndSub
		
EventExitSub: 
		If KeyAscii = 0 Then
			eventArgs.Handled = True
		End If
	End Sub
	Private Sub frmSplash_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
		
		On Error GoTo ErrHandler
		Const cPROCNAME As String = "Form_Load"
		
        lblVersion.Text = "Version " & System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileMajorPart & "." & System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).FileMinorPart
        lblProductName.Text = System.Reflection.Assembly.GetExecutingAssembly.GetName.Name
		lblCompany.Text = System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).CompanyName
		lblWarning.Text = System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).LegalCopyright
		
EndSub: 
		Exit Sub
		
ErrHandler: 
		Call SetErr(Err.Number, Err.Description, Me.Name, cPROCNAME)
		GoTo EndSub
		
	End Sub
	'UPGRADE_WARNING: Form event frmSplash.Unload has a new behavior. Click for more: 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="vbup2065"'
	Private Sub frmSplash_Closed(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Closed
		
		On Error GoTo ErrHandler
		Const cPROCNAME As String = "Form_Unload"
		
		'UPGRADE_NOTE: Object frmSplash may not be destroyed until it is garbage collected. Click for more: 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="vbup1029"'
		frmSplash.DefInstance = Nothing
		
EndSub: 
		Exit Sub
		
ErrHandler: 
		Call SetErr(Err.Number, Err.Description, Me.Name, cPROCNAME)
		GoTo EndSub
		
	End Sub
	Private Sub Timer1_Tick(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Timer1.Tick
		
		On Error GoTo ErrHandler
		Const cPROCNAME As String = "Timer1_Timer"
		
		Me.Close()
		
EndSub: 
		Exit Sub
		
ErrHandler: 
		Call SetErr(Err.Number, Err.Description, Me.Name, cPROCNAME)
		GoTo EndSub
		
	End Sub
End Class